package com.shangxian.giveithome.entity.community;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 关注表
 */
@Data
public class Attention {

    /**
     * *****
     */
    private Long id;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 关注用户的id
     */
    private Long attentionId;

    /**
     * 关注时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date attentionTime;
}
